<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<!-- Thymeleaf为我们提供的Spring Security的标签支持 -->
<head>
<meta charset="UTF-8" />
<title>登录页</title>
</head>
<body>
<form name='f' action='login' method='POST'>
<table>
	<tr>
		<td>用户名:</td>
		<td><input type='text' name='username' value='yiqun'/></td>
	</tr>
	<tr>
		<td>密码:</td><td><input type='password' name='password' value='123456'/></td>
	</tr>
	<tr>
		<td colspan='2'><input name="submit" type="submit" value="Login"/></td>
	</tr>
	<input type="hidden"                        
		th:name="${_csrf.parameterName}"
		th:value="${_csrf.token}"
		th:if="${_csrf}"/>
</table>
</form>
</body>
</html>